package com.sl.au.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name = "sl_crm_section")
public class Section extends Root {

	/**科区编号 */
	@Column(name = "sSectionCode")
	private String sectionCode;
	
	/** 科长 */
	@OneToOne 
	@JoinColumn
	private User chief;
	
	/** 科区名称 */
	@Column(name = "sSectionName")
	private String sectionName;
	
	/**所属片区 */
	@Column(name = "sSuperior")
	private String superior;
	
	/** 部门-片区 */
	@Column(name = "sSectionArea")
	private String sectionArea;
	
	/** 是否废弃*/
	@Column(name = "nIsAbandon")
	private int isAbandon;

	
	
	public User getChief() {
		return chief;
	}

	public void setChief(User chief) {
		this.chief = chief;
	}

	public String getSectionArea() {
		return sectionArea;
	}

	public void setSectionArea(String sectionArea) {
		this.sectionArea = sectionArea;
	}

	public int getIsAbandon() {
		return isAbandon;
	}

	public void setIsAbandon(int isAbandon) {
		this.isAbandon = isAbandon;
	}

	public String getSuperior() {
		return superior;
	}

	public void setSuperior(String superior) {
		this.superior = superior;
	}

	public String getSectionCode() {
		return sectionCode;
	}

	public void setSectionCode(String sectionCode) {
		this.sectionCode = sectionCode;
	}

	public String getSectionName() {
		return sectionName;
	}

	public void setSectionName(String sectionName) {
		this.sectionName = sectionName;
	}
	
	

}
